package com.online.websocketcluster.service;

import com.online.websocketcluster.service.impl.MessageBatchServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 *   java批处理服务
 *   @author hsc
 *   @create 2018-04-28 10:35
 */
@FeignClient(name="message-batch-server",fallback= MessageBatchServiceImpl.class)
public interface MessageBatchService {

    /**
     * 保存message到批处理服务
     * @return
     */
    @PostMapping(path = "/saveCustomerMessage")
    Map saveCustomerMessage(@RequestBody Map map);

    /**
     * 保存已读的uuid到批处理服务
     * @return
     */
    @PostMapping(path = "/saveUuids")
    Map saveUuids(@RequestBody Map map);
}
